﻿package dt 
{
	import dt.exchangeddata.TableLiveBetPoolInfo;
	import flash.display.MovieClip;
	import flash.display.SimpleButton;
	import flash.text.TextField;
	import game.exchangeddata.HashTable;
	/**
	 * ...
	 * @author Nguyen Thi Bich Phuong (Daisy)
	 */
	public class TableLiveBetPoolPanel extends MovieClip {		
		public var txtDragonTf:TextField;
		public var txtTigerTf:TextField;
		public var txtTieTf:TextField;	
		
		public var statisticDragonTf:TextField;
		public var statisticTigerTf:TextField;
		public var statisticTieTf:TextField;		
		
		public function TableLiveBetPoolPanel() { }
		
		/**
		 * @author Daisy
		 * @param	liveBetPoolGame
		 * @usage This function to display LiveBetPoolGame information to gameview
		 */
		public function updateLiveBetPoolGame(liveBetPoolGame:TableLiveBetPoolInfo):void {			
			this.statisticDragonTf.text = liveBetPoolGame.numDragon + "";
			this.statisticTigerTf.text = liveBetPoolGame.numTiger + "";
			this.statisticTieTf.text = liveBetPoolGame.numTie + "";			
		}		
		
		/**
		 * @author Daisy
		 * @param	hashTableInfo
		 */
		public function initText(hashTableInfo:HashTable) {
			this.txtDragonTf.text = hashTableInfo.lookupString("Pooldragon") + ":";
			this.txtTigerTf.text = hashTableInfo.lookupString("Pooltiger") + ":";
			this.txtTieTf.text = hashTableInfo.lookupString("Pooltie") + ":";			
		}
	}
}